/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package BeanManager;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ApplicationScoped;

/**
 *
 * @author nmeli
 */
@ManagedBean(name = "connexion")
@ApplicationScoped
public class Connexion implements Serializable{
private String email;
private String pass;
    /**
     * Creates a new instance of Connexion
     */
    public Connexion() {
     email="nadine@gmail.com" ;
     pass="123456";
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }
    
     public String valider(){
    String retour;
    if(email.equals("nadine@gmail.com")&& pass.equals("123456")){
    
    retour="bien";
    }
    else{
       retour="erreur"  ;   
            }
    return retour;
    }
    
}
